package com.gistone.commis.entity;


import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;

import java.util.Date;

/**
 * Created by wangfan on 2017/5/3.
 */
@Getter
@Setter
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class House {
    private Integer houseId;
    private Integer communityId;
    private  Community community;
    private Integer departId;
    private  Depart depart;
    private Integer userId;
    private  User user;
    private String houseName;
    private String houseAdd;
    @JsonFormat(pattern="yyyy-MM-dd")
//    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date completedTime;
    private String serviceCondition;
    private Double houseArea;
    private String remarks;
    @JsonFormat(pattern="yyyy-MM-dd")
//    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date registerTime;
    private Integer houseDetailId;
    private String houseType;
    private String acquireWay;
    private String fundFrom;
    private Integer isDelete;
    private Double money;
    @JsonFormat(pattern="yyyy-MM-dd")
    private Date buyDate;

    public House(Integer houseId, Integer communityId, Integer departId, Integer userId, String houseName, String houseAdd, Date completedTime, String serviceCondition, Double houseArea, String remarks, Date registerTime, Integer houseDetailId, String houseType, String acquireWay, String fundFrom, Integer isDelete, Double money, Date buyDate) {
        this.houseId = houseId;
        this.communityId = communityId;
        this.departId = departId;
        this.userId = userId;
        this.houseName = houseName;
        this.houseAdd = houseAdd;
        this.completedTime = completedTime;
        this.serviceCondition = serviceCondition;
        this.houseArea = houseArea;
        this.remarks = remarks;
        this.registerTime = registerTime;
        this.houseDetailId = houseDetailId;
        this.houseType = houseType;
        this.acquireWay = acquireWay;
        this.fundFrom = fundFrom;
        this.isDelete=isDelete;
        this.money = money;
        this.buyDate = buyDate;
    }
}